package com.ux.example
{
	import com.ux.event.PagingEvent;
	import com.ux.control.Paging;
	
	import flash.display.Sprite;
	
	public class PagingTest extends Sprite
	{
		public function PagingTest()
		{
			super();
			
			var page : Paging = new Paging( 100, 10, 1 );
			page.addEventListener(PagingEvent.PAGE_CHANGE, onPageChange );
			this.addChild( page );
		}
		
		private function onPageChange( e:PagingEvent ):void
		{
			
			trace( " 현재 선택된 페이지는 : " + e.page );
		}
	}
}